<template>
  <svg :class="customSvgCss" aria-hidden="true">
    <use :href="symbolId" />
  </svg>
</template>

<script setup lang="ts">
import { defineProps, computed } from 'vue'

const props = defineProps({
  name: {
    type: String,
    required: true,
  },
  prefix: {
    type: String,
    default: 'icon',
  },
  customSvgCss: {
    type: String,
    default: '',
  },
})
const symbolId = computed(() => `#${props.prefix}-${props.name}`)
</script>

<style scoped></style>
